|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
The common interface representing a declaration. A declaration has a set of access modifiers associated with it. For each declaration a list fo AST objects referring to it can be obtained.
| Method Summary | |
int |
getDeclaredModifiers()
Returns this declaration's explicitly specified modifiers. |
int |
getModifiers()
Returns this declaration's modifiers. |
AstModifier[] |
getModifiersList()
Return array of declared modifiers |
AstReference[] |
getReferences()
Returns an array of objects that refers to this declaration. |
boolean |
isAbstract()
Returns true if this declaration has the abstract
modifier. |
boolean |
isFinal()
Returns true if this declaration has the final
modifier. |
boolean |
isNative()
Returns true if this declaration has the native
modifier. |
boolean |
isPackage()
Returns true if this declaration has default access. |
boolean |
isPrivate()
Returns true if this declaration has the private
modifier. |
boolean |
isProtected()
Returns true if this declaration has the protected
modifier. |
boolean |
isPublic()
Returns true if this declaration has the public
modifier. |
boolean |
isStatic()
Returns true if this declaration has the static
modifier. |
boolean |
isStrictfp()
Returns true if this declaration has the strictfp
modifier. |
boolean |
isSynchronized()
Returns true if this declaration has the synchronized
modifier. |
boolean |
isTransient()
Returns true if this declaration has the transient
modifier. |
boolean |
isVolatile()
Returns true if this declaration has the volatile
modifier. |
void |
setDeclaredModifiers(int modifiers)
Alter set of declaration modifiers |
void |
swapWith(AstDeclaration anotherDecl)
Swap location of two declations |
| Methods inherited from interface com.togethersoft.sca.ast.AstElement |
getElementName |
| Methods inherited from interface com.togethersoft.sca.ast.AstObject |
addComment, getChildren, getComments, getCompilationUnit, getDeclaringMethod, getDeclaringType, getObjectKind, getPackage, getParent, getPosition, isDeleted, remove, replaceWith, replaceWith, setPosition, setPositionAfter, visitExpressions, visitStatements |
| Method Detail |
public int getDeclaredModifiers()
AstModifiers
interface.
The returned value includes only modifiers explicitly declared in the source code.
public int getModifiers()
AstModifiers interface.
The returned value includes implicit modifiers such as the
abstract modifier of interface methods.
public AstModifier[] getModifiersList()
public AstReference[] getReferences()
public boolean isAbstract()
true if this declaration has the abstract
modifier.true if this declaration is abstract.public boolean isFinal()
true if this declaration has the final
modifier.true if this declaration is final.public boolean isNative()
true if this declaration has the native
modifier.true if this declaration is native.public boolean isPackage()
true if this declaration has default access.true if this declaration has default access.public boolean isPrivate()
true if this declaration has the private
modifier.true if this declaration is private.public boolean isProtected()
true if this declaration has the protected
modifier.true if this declaration is protected.public boolean isPublic()
true if this declaration has the public
modifier.true if this declaration is public.public boolean isStatic()
true if this declaration has the static
modifier.true if this declaration is static.public boolean isStrictfp()
true if this declaration has the strictfp
modifier.true if this declaration is strictfp.public boolean isSynchronized()
true if this declaration has the synchronized
modifier.true if this declaration is synchronized.public boolean isTransient()
true if this declaration has the transient
modifier.true if this declaration is transient.public boolean isVolatile()
true if this declaration has the volatile
modifier.true if this declaration is volatile.public void setDeclaredModifiers(int modifiers)
modifiers - new modifiers of declarationpublic void swapWith(AstDeclaration anotherDecl)
anotherDecl - declaration with which this declaration will be swapped
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||