Class TokenImpl
- java.lang.Object
-
- org.webpieces.templatingdev.impl.source.TokenImpl
-
-
Field Summary
Fields Modifier and Type Field Description intbeginintbeginLineNumberintendintendLineNumberjava.lang.StringsourceTemplateTokenstate
-
Constructor Summary
Constructors Constructor Description TokenImpl(java.lang.String filePath, int begin, int end, TemplateToken state, int beginLineNumber, int endLineNumber, java.lang.String source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCleanValue()Get's the entire String between #{ and }# including argumentsjava.lang.StringgetFilePath()java.lang.StringgetSourceLocation(boolean dueToError)When you throw an exception, you can add the location in the source by reading from the token it's locationjava.lang.StringgetTagName()java.lang.StringgetValue()booleanisEndTag()java.lang.StringtoString()voidverifyContentsHaveNoStartTag()
-
-
-
Field Detail
-
begin
public int begin
-
end
public int end
-
state
public TemplateToken state
-
beginLineNumber
public int beginLineNumber
-
endLineNumber
public int endLineNumber
-
source
public java.lang.String source
-
-
Constructor Detail
-
TokenImpl
public TokenImpl(java.lang.String filePath, int begin, int end, TemplateToken state, int beginLineNumber, int endLineNumber, java.lang.String source)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getValue
public java.lang.String getValue()
-
getCleanValue
public java.lang.String getCleanValue()
Description copied from interface:TokenGet's the entire String between #{ and }# including arguments- Specified by:
getCleanValuein interfaceToken
-
getFilePath
public java.lang.String getFilePath()
-
getSourceLocation
public java.lang.String getSourceLocation(boolean dueToError)
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
-
getTagName
public java.lang.String getTagName()
-
verifyContentsHaveNoStartTag
public void verifyContentsHaveNoStartTag()
-
-