Package net.jangaroo.jooc.ast
Class TypeDeclaration
- java.lang.Object
-
- net.jangaroo.jooc.ast.NodeImplBase
-
- net.jangaroo.jooc.ast.Directive
-
- net.jangaroo.jooc.ast.Statement
-
- net.jangaroo.jooc.ast.Declaration
-
- net.jangaroo.jooc.ast.IdeDeclaration
-
- net.jangaroo.jooc.ast.TypeDeclaration
-
- All Implemented Interfaces:
AstNode
- Direct Known Subclasses:
ClassDeclaration,PredefinedTypeDeclaration
public abstract class TypeDeclaration extends IdeDeclaration
A type declaration can either be predefined (*, void) or defined by a class or interface (ClassDeclaration).
-
-
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
-
-
Constructor Summary
Constructors Constructor Description TypeDeclaration(AnnotationsAndModifiers am, Ide ide)TypeDeclaration(Ide ide)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract TypedIdeDeclarationgetMemberDeclaration(String memberName)abstract TypedIdeDeclarationgetStaticMemberDeclaration(String memberName)abstract ClassDeclarationgetSuperTypeDeclaration()IdeDeclarationresolvePropertyDeclaration(String ide)Lookup a non-static member of the given nameIdeDeclarationresolvePropertyDeclaration(String ide, boolean isStatic)-
Methods inherited from class net.jangaroo.jooc.ast.IdeDeclaration
analyze, getChildren, getDeclarationSymbol, getExtNamespaceRelativeTargetQualifiedNameStr, getIde, getName, getPackageDeclaration, getQualifiedName, getQualifiedNameStr, getSuperDeclaration, getSymbol, getTargetQualifiedNameStr, getTargetQualifiedNameStrWithoutRename, getType, getUsages, handleDuplicateDeclaration, isConstructor, isDeclaringCompileTimeConstant, isMethod, isPrimaryDeclaration, resolveDeclaration, scope, setIde, toString, toSymbolArray
-
Methods inherited from class net.jangaroo.jooc.ast.Declaration
computeModifiers, getAllowedModifiers, getAnnotation, getAnnotations, getAnnotations, getClassDeclaration, getCompilationUnit, getModifierFlag, getModifiers, getParentDeclaration, getSymInheritedModifiers, getSymModifiers, isAbstract, isDynamic, isFinal, isNative, isOverride, isPrivate, isPrivateStatic, isProtected, isPublic, isPublicApi, isStatic, isWritable, setClassDeclaration, setInheritedModifiers, setParentDeclaration, setSymInheritedModifiers
-
Methods inherited from class net.jangaroo.jooc.ast.Directive
isClassMember, setClassMember
-
Methods inherited from class net.jangaroo.jooc.ast.NodeImplBase
analyze, getParentNode, isAssignmentLHS, makeChildren, notifyInstanceThisUsed, propagateInstanceThisUsed, scope, usesInstanceThis, withNewDeclarationScope, withNewLabelScope
-
-
-
-
Constructor Detail
-
TypeDeclaration
public TypeDeclaration(AnnotationsAndModifiers am, Ide ide)
-
TypeDeclaration
public TypeDeclaration(Ide ide)
-
-
Method Detail
-
getMemberDeclaration
public abstract TypedIdeDeclaration getMemberDeclaration(String memberName)
-
getStaticMemberDeclaration
public abstract TypedIdeDeclaration getStaticMemberDeclaration(String memberName)
-
getSuperTypeDeclaration
public abstract ClassDeclaration getSuperTypeDeclaration()
-
resolvePropertyDeclaration
public IdeDeclaration resolvePropertyDeclaration(String ide)
Lookup a non-static member of the given name- Parameters:
ide- the member name- Returns:
- a non-static member if found, null otherwise
-
resolvePropertyDeclaration
public IdeDeclaration resolvePropertyDeclaration(String ide, boolean isStatic)
-
-