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
public interface IParsedElementWithAtLeastOneDeclaration extends IParsedElement
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
declares(String identifierName)
String[]
getDeclarations()
int
getNameOffset(String identifierName)
The offset of the token representing the name for the declarationvoid
setNameOffset(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 Detail
-
getNameOffset
int getNameOffset(String identifierName)
The offset of the token representing the name for the declaration- Parameters:
identifierName
-
-
setNameOffset
void setNameOffset(int iOffset, String identifierName)
-
declares
boolean declares(String identifierName)
- Parameters:
identifierName
-- Returns:
- True if this statement declares the given identifier; false otherwise
-
getDeclarations
String[] getDeclarations()
- Returns:
- all names declared by this element
-
-