Class TokenImpl
java.lang.Object
org.webpieces.templatingdev.impl.source.TokenImpl
- All Implemented Interfaces:
Token
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintintint -
Constructor Summary
ConstructorsConstructorDescriptionTokenImpl(String filePath, int begin, int end, TemplateToken state, int beginLineNumber, int endLineNumber, String source) -
Method Summary
Modifier and TypeMethodDescriptionGet's the entire String between #{ and }# including argumentsgetSourceLocation(boolean dueToError) When you throw an exception, you can add the location in the source by reading from the token it's locationgetValue()booleanisEndTag()toString()void
-
Field Details
-
begin
public int begin -
end
public int end -
state
-
beginLineNumber
public int beginLineNumber -
endLineNumber
public int endLineNumber -
source
-
-
Constructor Details
-
TokenImpl
public TokenImpl(String filePath, int begin, int end, TemplateToken state, int beginLineNumber, int endLineNumber, String source)
-
-
Method Details
-
toString
-
getValue
-
getCleanValue
Description copied from interface:TokenGet's the entire String between #{ and }# including arguments- Specified by:
getCleanValuein interfaceToken
-
getFilePath
-
getSourceLocation
Description copied from interface:TokenWhen you throw an exception, you can add the location in the source by reading from the token it's location- Specified by:
getSourceLocationin interfaceToken
-
isEndTag
public boolean isEndTag() -
getTagName
-
verifyContentsHaveNoStartTag
public void verifyContentsHaveNoStartTag()
-