Package net.jangaroo.jooc.ast
Class PropertyDeclaration
-
public class PropertyDeclaration extends TypedIdeDeclaration
Virtual AST node that is created to aggregate a complementing get and set accessor.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.jangaroo.jooc.ast.NodeImplBase
NodeImplBase.Scoped
-
-
Field Summary
-
Fields inherited from class net.jangaroo.jooc.ast.Declaration
MODIFIER_ABSTRACT, MODIFIER_DYNAMIC, MODIFIER_FINAL, MODIFIER_INTERNAL, MODIFIER_NAMESPACE, MODIFIER_NATIVE, MODIFIER_OVERRIDE, MODIFIER_PRIVATE, MODIFIER_PROTECTED, MODIFIER_PUBLIC, MODIFIER_STATIC, MODIFIER_VIRTUAL, MODIFIERS_SCOPE
-
Fields inherited from class net.jangaroo.jooc.ast.NodeImplBase
usesInstanceThis
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FunctionDeclarationgetAccessor(boolean returnSetter)ClassDeclarationgetClassDeclaration()FunctionDeclarationgetGetter()Iterable<FunctionDeclaration>getMethods()intgetModifiers()FunctionDeclarationgetSetter()booleanisBindable()booleanisClassMember()booleanisExtConfig()booleanisWritable()voidvisit(AstVisitor visitor)-
Methods inherited from class net.jangaroo.jooc.ast.TypedIdeDeclaration
analyze, getChildren, getNamespace, getOptTypeRelation, getType, isExtConfigOrBindable, isMixinMemberRedeclaration, isPublicApi, resolveDeclaration, scope
-
Methods inherited from class net.jangaroo.jooc.ast.IdeDeclaration
getDeclarationSymbol, getExtNamespaceRelativeTargetQualifiedNameStr, getIde, getName, getPackageDeclaration, getQualifiedName, getQualifiedNameStr, getSuperDeclaration, getSymbol, getTargetQualifiedNameStr, getTargetQualifiedNameStrWithoutRename, getUsages, handleDuplicateDeclaration, isConstructor, isDeclaringCompileTimeConstant, isMethod, isPrimaryDeclaration, setIde, toString, toSymbolArray
-
Methods inherited from class net.jangaroo.jooc.ast.Declaration
computeModifiers, getAllowedModifiers, getAnnotation, getAnnotations, getAnnotations, getCompilationUnit, getModifierFlag, getParentDeclaration, getSymInheritedModifiers, getSymModifiers, isAbstract, isDynamic, isFinal, isNative, isOverride, isPrivate, isPrivateStatic, isProtected, isPublic, isStatic, setClassDeclaration, setInheritedModifiers, setParentDeclaration, setSymInheritedModifiers
-
Methods inherited from class net.jangaroo.jooc.ast.Directive
setClassMember
-
Methods inherited from class net.jangaroo.jooc.ast.NodeImplBase
analyze, getParentNode, isAssignmentLHS, makeChildren, notifyInstanceThisUsed, propagateInstanceThisUsed, scope, usesInstanceThis, withNewDeclarationScope, withNewLabelScope
-
-
-
-
Method Detail
-
getModifiers
public int getModifiers()
- Overrides:
getModifiersin classDeclaration
-
getGetter
public FunctionDeclaration getGetter()
-
getSetter
public FunctionDeclaration getSetter()
-
getAccessor
public FunctionDeclaration getAccessor(boolean returnSetter)
-
getMethods
public Iterable<FunctionDeclaration> getMethods()
-
isWritable
public boolean isWritable()
- Overrides:
isWritablein classDeclaration
-
isClassMember
public boolean isClassMember()
- Overrides:
isClassMemberin classDirective
-
getClassDeclaration
public ClassDeclaration getClassDeclaration()
- Overrides:
getClassDeclarationin classDeclaration
-
isExtConfig
public boolean isExtConfig()
- Overrides:
isExtConfigin classTypedIdeDeclaration
-
isBindable
public boolean isBindable()
- Overrides:
isBindablein classTypedIdeDeclaration
-
visit
public void visit(AstVisitor visitor) throws IOException
- Throws:
IOException
-
-