Package net.jangaroo.jooc.ast
Class Parameter
-
public class Parameter extends IdeDeclaration implements Typed
- Author:
- Andreas Gawecki, Frank Wienberg
-
-
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 Parameter(JooSymbol optSymRest, Ide ide, TypeRelation optTypeRelation, Initializer optInitializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidanalyze(AstNode parentNode)List<? extends AstNode>getChildren()InitializergetOptInitializer()JooSymbolgetOptSymRest()TypeRelationgetOptTypeRelation()booleanhasInitializer()booleanisRest()booleanisWritable()IdeDeclarationresolveDeclaration()Resolve this declaration to the underlying Class or PredefinedType declarationvoidscope(Scope scope)voidvisit(AstVisitor visitor)-
Methods inherited from class net.jangaroo.jooc.ast.IdeDeclaration
getDeclarationSymbol, getExtNamespaceRelativeTargetQualifiedNameStr, getIde, getName, getPackageDeclaration, getQualifiedName, getQualifiedNameStr, getSuperDeclaration, getSymbol, getTargetQualifiedNameStr, getTargetQualifiedNameStrWithoutRename, getType, getUsages, handleDuplicateDeclaration, isConstructor, isDeclaringCompileTimeConstant, isMethod, isPrimaryDeclaration, 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, 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
-
Parameter
public Parameter(JooSymbol optSymRest, Ide ide, TypeRelation optTypeRelation, Initializer optInitializer)
-
-
Method Detail
-
isWritable
public boolean isWritable()
- Overrides:
isWritablein classDeclaration
-
getChildren
public List<? extends AstNode> getChildren()
- Specified by:
getChildrenin interfaceAstNode- Overrides:
getChildrenin classIdeDeclaration
-
visit
public void visit(AstVisitor visitor) throws IOException
- Specified by:
visitin interfaceAstNode- Throws:
IOException
-
scope
public void scope(Scope scope)
- Specified by:
scopein interfaceAstNode- Overrides:
scopein classIdeDeclaration
-
analyze
public void analyze(AstNode parentNode)
- Specified by:
analyzein interfaceAstNode- Overrides:
analyzein classIdeDeclaration
-
isRest
public boolean isRest()
-
hasInitializer
public boolean hasInitializer()
-
resolveDeclaration
public IdeDeclaration resolveDeclaration()
Description copied from class:IdeDeclarationResolve this declaration to the underlying Class or PredefinedType declaration- Overrides:
resolveDeclarationin classIdeDeclaration- Returns:
- the declaration
-
getOptSymRest
public JooSymbol getOptSymRest()
-
getOptTypeRelation
public TypeRelation getOptTypeRelation()
- Specified by:
getOptTypeRelationin interfaceTyped
-
getOptInitializer
public Initializer getOptInitializer()
-
-