Package gw.lang.parser
Interface IParsedElementWithAtLeastOneDeclaration
- All Superinterfaces:
IParsedElement
- All Known Subinterfaces:
ICatchClause,IClassDeclaration,IConstructorStatement,IDelegateStatement,IForEachStatement,IFunctionStatement,ILocalVarDeclaration,IParameterDeclaration,IPropertyStatement,ITypeVariableDefinitionExpression,IVarStatement
- All Known Implementing Classes:
CatchClause,ClassDeclaration,ConstructorStatement,DelegateStatement,ForEachStatement,FunctionStatement,LocalVarDeclaration,ParameterDeclaration,PropertyStatement,TypeVariableDefinition,VarStatement
-
Method Summary
Modifier and TypeMethodDescriptionbooleanString[]intgetNameOffset(String identifierName) The offset of the token representing the name for the declarationvoidsetNameOffset(int iOffset, String identifierName) Methods inherited from interface gw.lang.parser.IParsedElement
addExceptionsFrom, addParseException, addParseException, addParseWarning, addParseWarning, clearParseExceptions, clearParseTreeInformation, clearParseWarnings, findAncestorParsedElementByType, findDeclaringStatement, findRootParsedElement, getColumn, getContainedParsedElementsByType, getContainedParsedElementsByTypes, getContainedParsedElementsByTypesWithIgnoreSet, getFunctionName, getGosuClass, getGosuProgram, getImmediateParseIssue, getImmediateParseIssues, getLineNum, getLocation, getModule, getParent, getParseExceptions, getParseIssues, getParseWarnings, getReturnType, getTokens, hasImmediateParseIssue, hasImmediateParseWarnings, hasParseException, hasParseExceptions, hasParseIssue, hasParseIssues, hasParseWarning, hasParseWarnings, isCompileTimeConstant, isSuppressed, isSynthetic, setLocation, setParent, visit
-
Method Details
-
getNameOffset
The offset of the token representing the name for the declaration- Parameters:
identifierName-
-
setNameOffset
-
declares
- Parameters:
identifierName-- Returns:
- True if this statement declares the given identifier; false otherwise
-
getDeclarations
String[] getDeclarations()- Returns:
- all names declared by this element
-