com.togethersoft.sca.ast
Interface AstFieldReference
- All Superinterfaces:
- AstExpression, AstObject, AstReference
- public interface AstFieldReference
- extends AstExpression, AstReference
Represents a field access expression. It includes type field accesses,
qualified super and this expressions,
and class literals. For example:
System.err.println();
int i = T.super.length;
int j = T.this.length;
ProtectionDomain pd = T.class.getProtection();
|
Field Summary |
static int |
CLASS
Constant representing a class literal reference. |
static int |
SIMPLE
Constant representing a simple identifier reference. |
static int |
SUPER
Constant representing a qualified super field access. |
static int |
THIS
Constant representing a qualified this field access. |
| Fields inherited from interface com.togethersoft.sca.ast.AstObject |
ARRAY_CREATION, ARRAY_INITIALIZER, ARRAY_REFERENCE, ASSERT_STATEMENT, ASSIGNMENT_EXPRESSION, BINARY_EXPRESSION, BREAK_STATEMENT, CASE_LABEL, CAST_EXPRESSION, CATCH_CLAUSE, CLASS_FILE, COMMENT, COMPILATION_UNIT, COMPOUND_STATEMENT, CONDITIONAL_EXPRESSION, CONSTRUCTOR_INVOCATION, CONTINUE_STATEMENT, DBC_RESULT, DECLARATION_STATEMENT, DO_STATEMENT, EMPTY_STATEMENT, EXPRESSION_STATEMENT, FIELD_REFERENCE, FINALLY_CLAUSE, FOR_STATEMENT, IF_STATEMENT, IMPORT, INITIALIZER, JAVADOC_TAG, LITERAL, METHOD, METHOD_CALL_EXPRESSION, N_A, OBJECT_CREATION_EXPRESSION, PACKAGE, PARENTHESIZED_EXPRESSION, RETURN_STATEMENT, SIMPLE_REFERENCE, SUPER_EXPRESSION, SWITCH_GROUP, SWITCH_STATEMENT, SYNCHRONIZED_STATEMENT, THIS_EXPRESSION, THROW_SPECIFIER, THROW_STATEMENT, TRY_STATEMENT, TYPE, TYPE_EXPRESSION, UNARY_EXPRESSION, VARIABLE, VARIABLE_DECLARATION, WHILE_STATEMENT |
|
Method Summary |
AstExpression |
getBaseExpression()
Returns the base of this expression (before the dot). |
int |
getFieldKind()
Returns the kind of this expression encoded as an integer. |
java.lang.String |
getIdentifier()
Returns the identifier of the field this expression refers to. |
void |
setIdentifier(java.lang.String ident)
Alter identifier od reference |
| 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 |
CLASS
public static final int CLASS
- Constant representing a class literal reference.
SIMPLE
public static final int SIMPLE
- Constant representing a simple identifier reference.
SUPER
public static final int SUPER
- Constant representing a qualified
super field access.
THIS
public static final int THIS
- Constant representing a qualified
this field access.
getBaseExpression
public AstExpression getBaseExpression()
- Returns the base of this expression (before the dot).
- Returns:
- the base of this expresison.
getFieldKind
public int getFieldKind()
- Returns the kind of this expression encoded as an integer.
- Returns:
- the kind of this expression.
getIdentifier
public java.lang.String getIdentifier()
- Returns the identifier of the field this expression refers to.
- Returns:
- the field identifier.
setIdentifier
public void setIdentifier(java.lang.String ident)
- Alter identifier od reference
- Parameters:
new - identifier