本文整理汇总了Java中com.panoramagl.enumerations.PLTokenType类的典型用法代码示例。如果您正苦于以下问题:Java PLTokenType类的具体用法?Java PLTokenType怎么用?Java PLTokenType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PLTokenType类属于com.panoramagl.enumerations包,在下文中一共展示了PLTokenType类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initializeValues
import com.panoramagl.enumerations.PLTokenType; //导入依赖的package包/类
/**init methods*/
@Override
protected void initializeValues()
{
super.initializeValues();
this.addToken(PLTokenType.PLTokenTypeFunction, "load|BLEND|lookAtAndZoom|lookAt|zoom|fov|null");
this.addToken(PLTokenType.PLTokenTypeString, "'[^\"\'\n\r]*'");
this.addToken(PLTokenType.PLTokenTypeOpenBracket, "\\(");
this.addToken(PLTokenType.PLTokenTypeParameterSeparator, ",");
this.addToken(PLTokenType.PLTokenTypeCloseBracket, "\\)");
this.addToken(PLTokenType.PLTokenTypePlusOrMinus, "\\+|-");
this.addToken(PLTokenType.PLTokenTypeMultOrDivide, "\\*|/");
this.addToken(PLTokenType.PLTokenTypeBoolean, "true|false");
this.addToken(PLTokenType.PLTokenTypeNumber, "[0-9]+(.[0-9]+)?");
this.addToken(PLTokenType.PLTokenTypeConst, "[A-Z][A-Z0-9_]*");
this.addToken(PLTokenType.PLTokenTypeVariable, "[a-zA-Z][a-zA-Z0-9_]*");
this.addToken(PLTokenType.PLTokenTypeEOS, ";");
}
示例2: addToken
import com.panoramagl.enumerations.PLTokenType; //导入依赖的package包/类
/**token methods*/
@Override
public void addToken(PLTokenType tokenType, String regex)
{
mTokensData.add(PLTokenData.PLTokenDataMake(tokenType, Pattern.compile("^(" + regex + ")")));
}
示例3: PLTokenData
import com.panoramagl.enumerations.PLTokenType; //导入依赖的package包/类
/**init methods*/
public PLTokenData(PLTokenType typeValue, Pattern regexValue)
{
super();
type = typeValue;
regex = regexValue;
}
示例4: PLToken
import com.panoramagl.enumerations.PLTokenType; //导入依赖的package包/类
/**init methods*/
public PLToken(PLTokenType type, String sequence)
{
super();
mType = type;
mSequence = sequence;
}
示例5: getType
import com.panoramagl.enumerations.PLTokenType; //导入依赖的package包/类
/**property methods*/
@Override
public PLTokenType getType()
{
return mType;
}
示例6: PLTokenDataMake
import com.panoramagl.enumerations.PLTokenType; //导入依赖的package包/类
public static PLTokenData PLTokenDataMake(PLTokenType type, Pattern regex)
{
return new PLTokenData(type, regex);
}
示例7: setType
import com.panoramagl.enumerations.PLTokenType; //导入依赖的package包/类
protected void setType(PLTokenType type)
{
mType = type;
}
示例8: addToken
import com.panoramagl.enumerations.PLTokenType; //导入依赖的package包/类
/**token methods*/
void addToken(PLTokenType tokenType, String regex);
示例9: getType
import com.panoramagl.enumerations.PLTokenType; //导入依赖的package包/类
/**property methods*/
PLTokenType getType();