org.androidtransfuse.analysis.adapter
Class ASTElementField

Package class diagram package ASTElementField
java.lang.Object
  extended by org.androidtransfuse.analysis.adapter.ASTElementBase
      extended by org.androidtransfuse.analysis.adapter.ASTElementField
All Implemented Interfaces:
ASTBase, ASTField

public class ASTElementField
extends ASTElementBase
implements ASTField

Element specific implementation of the AST Field

Author:
John Ericksen

Constructor Summary
ASTElementField(VariableElement variableElement, ASTTypeBuilderVisitor astTypeBuilderVisitor, ASTAccessModifier modifier, com.google.common.collect.ImmutableCollection<ASTAnnotation> annotations)
           
 
Method Summary
 ASTAccessModifier getAccessModifier()
          Supplies the access modifier for this field
 ASTType getASTType()
          Supplies the type of the field represented.
 Object getConstantValue()
          Supplies the constant value for this field (if one exists)

IE: static String value = "constant"

 
Methods inherited from class org.androidtransfuse.analysis.adapter.ASTElementBase
getAnnotation, getAnnotations, getASTAnnotation, getName, isAnnotated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.androidtransfuse.analysis.adapter.ASTBase
getAnnotation, getAnnotations, getASTAnnotation, getName, isAnnotated
 

Constructor Detail

ASTElementField

public ASTElementField(VariableElement variableElement,
                       ASTTypeBuilderVisitor astTypeBuilderVisitor,
                       ASTAccessModifier modifier,
                       com.google.common.collect.ImmutableCollection<ASTAnnotation> annotations)
Method Detail

getASTType

public ASTType getASTType()
Description copied from interface: ASTField
Supplies the type of the field represented.

Specified by:
getASTType in interface ASTField
Returns:
field type

getAccessModifier

public ASTAccessModifier getAccessModifier()
Description copied from interface: ASTField
Supplies the access modifier for this field

Specified by:
getAccessModifier in interface ASTField
Returns:
field access modifier

getConstantValue

public Object getConstantValue()
Description copied from interface: ASTField
Supplies the constant value for this field (if one exists)

IE: static String value = "constant"

Specified by:
getConstantValue in interface ASTField
Returns:
constant field values


Copyright © 2012. All Rights Reserved.