本文整理汇总了Java中org.mozilla.javascript.Token.SET属性的典型用法代码示例。如果您正苦于以下问题:Java Token.SET属性的具体用法?Java Token.SET怎么用?Java Token.SET使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.mozilla.javascript.Token
的用法示例。
在下文中一共展示了Token.SET属性的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setNodeType
/**
* Sets the node type. Must be one of
* {@link Token#COLON}, {@link Token#GET}, or {@link Token#SET}.
* @throws IllegalArgumentException if {@code nodeType} is invalid
*/
public void setNodeType(int nodeType) {
if (nodeType != Token.COLON
&& nodeType != Token.GET
&& nodeType != Token.SET
&& nodeType != Token.METHOD)
throw new IllegalArgumentException("invalid node type: "
+ nodeType);
setType(nodeType);
}
示例2: setNodeType
/**
* Sets the node type. Must be one of
* {@link Token#COLON}, {@link Token#GET}, or {@link Token#SET}.
* @throws IllegalArgumentException if {@code nodeType} is invalid
*/
public void setNodeType(int nodeType) {
if (nodeType != Token.COLON
&& nodeType != Token.GET
&& nodeType != Token.SET)
throw new IllegalArgumentException("invalid node type: "
+ nodeType);
setType(nodeType);
}
示例3: setIsSetterMethod
/**
* Marks this node as a "setter" property.
*/
public void setIsSetterMethod() {
type = Token.SET;
}
示例4: isSetterMethod
/**
* Returns true if this is a setter function.
*/
public boolean isSetterMethod() {
return type == Token.SET;
}
示例5: setIsSetter
/**
* Marks this node as a "setter" property.
*/
public void setIsSetter() {
type = Token.SET;
}
示例6: isSetter
/**
* Returns true if this is a setter function.
*/
public boolean isSetter() {
return type == Token.SET;
}