public abstract class AccessorDefinition extends FunctionDefinition implements IAccessorDefinition
AccessorDefinition
is the abstract base class for definitions that
represent getters and setters.IFunctionDefinition.FunctionClassification
IVariableDefinition.VariableClassification
FLAG_CAST_FUNCTION, FLAG_CONSTRUCTOR, FLAG_CONTINGENT, FLAG_DECLARED_IN_CONTROL_FLOW, FLAG_DEFAULT, FLAG_DEPRECATED, FLAG_DYNAMIC, FLAG_FINAL, FLAG_GENERATED_EMBED_CLASS, FLAG_HAS_INIT, FLAG_IMPLICIT, FLAG_NATIVE, FLAG_OVERRIDE, FLAG_REST, FLAG_STATIC, flags, nodeRef, singletonEmptyMetaTags
Constructor and Description |
---|
AccessorDefinition(String name) |
Modifier and Type | Method and Description |
---|---|
IVariableDefinition.VariableClassification |
getVariableClassification()
Get the classification for this variable (local, argument, class member,
etc)
|
IVariableNode |
getVariableNode()
Returns the
IVariableNode from which this definition was created,
if the definition came from the AST for a source file. |
boolean |
inlineFunction()
Can this function be inlined
|
AccessorDefinition |
resolveCorrespondingAccessor(ICompilerProject project) |
Object |
resolveInitialValue(ICompilerProject project)
Attempt to resolve the initial value assigned to this variable.
|
buildInnerString, canFunctionBeInlined, getFunctionClassification, getFunctionNode, getParameters, getReturnTypeAsDisplayString, getReturnTypeReference, hasCompatibleSignature, hasRequiredParameters, isCastFunction, isConstructor, isImplementation, isInline, isTopLevelDefinition, matches, overridesAncestor, resolveImplementedFunction, resolveOverriddenFunction, resolveOverridenInterfaceFunctions, resolveReturnType, setAsConstructor, setCastFunction, setNode, setParameters, setReturnTypeReference
getContainedScope, setContainedScope, verify
addMetaTag, buildString, getAbsoluteEnd, getAbsoluteStart, getAllMetaTags, getAncestorOfType, getArrayElementType, getBaseName, getBindableEventNames, getColumn, getContainingASScope, getContainingFilePath, getContainingScope, getContainingSourceFilePath, getDefinition, getDeprecationInfo, getEnd, getExplicitSourceComment, getFileScope, getFileSpecification, getInstanceType, getLine, getLocationString, getMaxSize, getMetaTagByName, getMetaTagsByName, getMName, getModifiers, getNameColumn, getNameEnd, getNameLine, getNamespaceReference, getNamespaceReferenceAsString, getNameStart, getNode, getPackageName, getParent, getPercentProxy, getQualifiedName, getSize, getSkinPart, getSourcePath, getStart, getStorageName, getTypeAsDisplayString, getTypeDependencyType, getTypeReference, hasCollapseWhiteSpace, hasExplicitComment, hasMetaTagByName, hasModifier, hasNamespace, hasRichTextContent, inPackageNamespace, isBindable, isBindableStyle, isColor, isContingent, isContingentNeeded, isDeprecated, isDynamic, isEmpty, isFinal, isGeneratedEmbedClass, isImplicit, isInProject, isInternal, isNative, isOverride, isPrivate, isProtected, isPublic, isRequiredSkinPart, isStatic, resolveNamespace, resolveType, resolveType, resolveType, resolveType, resolveType, setBindable, setContainingScope, setContingent, setDynamic, setFinal, setGeneratedEmbedClass, setImplicit, setLocation, setMetaTags, setModifier, setNameLocation, setNamespaceReference, setNative, setOverride, setPublic, setStatic, setTypeReference, toStorageName, toString, unsetOverride
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFunctionClassification, getFunctionNode, getParameters, getReturnTypeAsDisplayString, getReturnTypeReference, hasRequiredParameters, isCastFunction, isConstructor, isImplementation, isInline, overridesAncestor, resolveImplementedFunction, resolveOverriddenFunction, resolveReturnType
getContainedScope
getExplicitSourceComment, hasExplicitComment
getAbsoluteEnd, getAbsoluteStart, getAllMetaTags, getAncestorOfType, getBaseName, getBindableEventNames, getColumn, getContainingFilePath, getContainingScope, getContainingSourceFilePath, getDeprecationInfo, getEnd, getLine, getMetaTagByName, getMetaTagsByName, getModifiers, getNameColumn, getNameEnd, getNameLine, getNamespaceReference, getNameStart, getNode, getPackageName, getParent, getQualifiedName, getSourcePath, getStart, getTypeAsDisplayString, getTypeReference, hasMetaTagByName, hasModifier, hasNamespace, isBindable, isBindableStyle, isContingent, isContingentNeeded, isDeprecated, isDynamic, isFinal, isGeneratedEmbedClass, isImplicit, isInProject, isInternal, isNative, isOverride, isPrivate, isProtected, isPublic, isStatic, resolveNamespace, resolveType
getArrayElementType, getInstanceType, getPercentProxy, hasCollapseWhiteSpace, hasRichTextContent, isColor, isRequiredSkinPart, isSkinPart
public AccessorDefinition(String name)
public AccessorDefinition resolveCorrespondingAccessor(ICompilerProject project)
resolveCorrespondingAccessor
in interface IAccessorDefinition
public IVariableDefinition.VariableClassification getVariableClassification()
getVariableClassification
in interface IVariableDefinition
public IVariableNode getVariableNode()
IVariableDefinition
IVariableNode
from which this definition was created,
if the definition came from the AST for a source file.
This method may require the AST to be reloaded or regenerated and therefore may be slow.
getVariableNode
in interface IVariableDefinition
public Object resolveInitialValue(ICompilerProject project)
IVariableDefinition
resolveInitialValue
in interface IVariableDefinition
project
- the Project to resolve things inpublic boolean inlineFunction()
IFunctionDefinition
inlineFunction
in interface IFunctionDefinition
inlineFunction
in class FunctionDefinition
Copyright © 2016 The Apache Software Foundation. All rights reserved.