Package gw.lang.parser
Interface IParsedElementWithAtLeastOneDeclaration
-
- All Superinterfaces:
IParsedElement
- All Known Subinterfaces:
ICatchClause,IClassDeclaration,IConstructorStatement,IDelegateStatement,IForEachStatement,IFunctionStatement,ILocalVarDeclaration,IParameterDeclaration,IPropertyStatement,ITypeVariableDefinitionExpression,IVarStatement
public interface IParsedElementWithAtLeastOneDeclaration extends IParsedElement
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandeclares(String identifierName)String[]getDeclarations()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 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
-
-