|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectantlr.BaseAST
antlr.CommonAST
antlr.CommonASTWithHiddenTokens
jparse.JavaAST
jparse.ModifierAST
An AST node that represents a (possibly empty) set of modifiers
Field Summary | |
(package private) int |
mods
The modifier values represented by this modifier AST |
Fields inherited from class jparse.JavaAST |
context, currSymTable, noTypes, symTable, topLevel, typeAST |
Fields inherited from class antlr.CommonASTWithHiddenTokens |
hiddenAfter, hiddenBefore |
Fields inherited from class antlr.CommonAST |
|
Fields inherited from class antlr.BaseAST |
down, right |
Constructor Summary | |
ModifierAST(int modBits)
Create a new modifier AST node |
Method Summary | |
boolean |
isAbstract()
Determine whether this set of modifiers includes the abstract modifier |
boolean |
isFinal()
Determine whether this set of modifiers includes the final
modifier |
boolean |
isInterface()
Determine whether this set of modifiers includes the interface modifier |
boolean |
isNative()
Determine whether this set of modifiers includes the native modifier |
boolean |
isPrivate()
Determine whether this set of modifiers includes the private modifier |
boolean |
isProtected()
Determine whether this set of modifiers includes the protected modifier |
boolean |
isPublic()
Determine whether this set of modifiers includes the public modifier |
boolean |
isStatic()
Determine whether this set of modifiers includes the static modifier |
boolean |
isStrict()
Determine whether this set of modifiers includes the strictfp modifier |
boolean |
isSynchronized()
Determine whether this set of modifiers includes the synchronized modifier |
boolean |
isTransient()
Determine whether this set of modifiers includes the transient modifier |
boolean |
isVolatile()
Determine whether this set of modifiers includes the volatile modifier |
(package private) void |
setInterface()
Identify this set of modifiers as belonging to an interface |
(package private) void |
setInterfaceMethod()
Identify this as modifiers for an interface method |
String |
toString()
Return a string representation of this set of modifiers |
Methods inherited from class jparse.JavaAST |
parseComplete, print, printHiddenAfter, printHiddenBefore |
Methods inherited from class antlr.CommonASTWithHiddenTokens |
getHiddenAfter, getHiddenBefore, initialize |
Methods inherited from class antlr.CommonAST |
getText, getType, initialize, initialize, setText, setType |
Methods inherited from class antlr.BaseAST |
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getColumn, getFirstChild, getLine, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
int mods
Constructor Detail |
public ModifierAST(int modBits)
modBits
- the modifier bitsMethod Detail |
void setInterface()
void setInterfaceMethod()
public boolean isPublic()
public
modifier
true
if public
is includedpublic boolean isPrivate()
private
modifier
true
if private
is includedpublic boolean isProtected()
protected
modifier
true
if protected
is includedpublic boolean isStatic()
static
modifier
true
if static
is includedpublic boolean isFinal()
final
modifier
true
if final
is includedpublic boolean isSynchronized()
synchronized
modifier
true
if synchronized
is includedpublic boolean isVolatile()
volatile
modifier
true
if volatile
is includedpublic boolean isTransient()
transient
modifier
true
if transient
is includedpublic boolean isNative()
native
modifier
true
if native
is includedpublic boolean isInterface()
interface
modifier
true
if interface
is includedpublic boolean isAbstract()
abstract
modifier
true
if abstract
is includedpublic boolean isStrict()
strictfp
modifier
true
if strictfp
is includedpublic String toString()
toString
in interface antlr.collections.AST
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |