-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b55164
commit 2453ff8
Showing
3 changed files
with
68 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license | ||
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template | ||
*/ | ||
package io.github.jeddict.ai; | ||
|
||
import org.netbeans.api.java.lexer.JavaTokenId; | ||
|
||
/** | ||
* | ||
* @author Gaurav Gupta | ||
*/ | ||
public class JavaToken { | ||
|
||
boolean javaContext; | ||
JavaTokenId id; | ||
int offset; | ||
|
||
public JavaToken(boolean javaContext, JavaTokenId id, int offset) { | ||
this.javaContext = javaContext; | ||
this.id = id; | ||
this.offset = offset; | ||
} | ||
|
||
public JavaToken(boolean javaContext) { | ||
this.javaContext = javaContext; | ||
} | ||
|
||
public boolean isJavaContext() { | ||
return javaContext; | ||
} | ||
|
||
public JavaTokenId getId() { | ||
return id; | ||
} | ||
|
||
public int getOffset() { | ||
return offset; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters