@Override public String getVariableType() { return getReturnType(); }
@Override public IExpressionNode getVariableTypeNode() { return getTypeNode(); }
GetterNode movieClipDataGetterNode = new GetterNode(null, null, new IdentifierNode("movieClipData")); movieClipDataGetterNode.addModifier(new ModifierNode(IASKeywordConstants.OVERRIDE)); movieClipDataGetterNode.setNamespace(new NamespaceIdentifierNode(INamespaceConstants.public_)); movieClipDataGetterNode.setType(null, new IdentifierNode("ByteArray")); ScopedBlockNode movieClipDataContents = movieClipDataGetterNode.getScopedNode();
public IDefinitionNode[] getDefinitions() { IDefinitionNode[] retVal = new IDefinitionNode[4]; VariableNode thisNode = new VariableNode(new IdentifierNode(IASKeywordConstants.THIS)); thisNode.setType(null, new IdentifierNode(IASLanguageConstants.Vector)); retVal[0] = thisNode; //and super VariableNode superNode = new VariableNode(new IdentifierNode(IASKeywordConstants.SUPER)); superNode.setType(null, new IdentifierNode(IASLanguageConstants.Object)); retVal[1] = superNode; //add the fixed getter/setter pair GetterNode fixGetter = new GetterNode(null, null, new IdentifierNode("fixed")); NamespaceIdentifierNode pub = new NamespaceIdentifierNode(INamespaceConstants.public_); pub.span(-1, -1, -1, -1); fixGetter.setNamespace(pub); fixGetter.setType(null, new IdentifierNode(IASLanguageConstants.Boolean)); retVal[2] = fixGetter; SetterNode fixSetter = new SetterNode(null, null, new IdentifierNode("fixed")); pub = new NamespaceIdentifierNode(INamespaceConstants.public_); pub.span(-1, -1, -1, -1); fixSetter.setNamespace(pub); fixSetter.setType(null, new IdentifierNode(IASLanguageConstants.void_)); ParameterNode value = new ParameterNode(new IdentifierNode("value")); value.setType(null, new IdentifierNode(IASLanguageConstants.Boolean)); fixSetter.getParametersContainerNode().addChild(value); retVal[3] = fixSetter; return retVal; }
n = new GetterNode((ASToken)functionT, (ASToken)getT, name); else if (setT != null) n = new SetterNode((ASToken)functionT, (ASToken)setT, name);
write(rightDef.getBaseName()); else write(((GetterNode) rightNode).getName()); write(ASEmitterTokens.MEMBER_ACCESS); write(JSEmitterTokens.APPLY);
GetterNode movieClipDataGetterNode = new GetterNode(null, null, new IdentifierNode("movieClipData")); movieClipDataGetterNode.addModifier(new ModifierNode(IASKeywordConstants.OVERRIDE)); movieClipDataGetterNode.setNamespace(new NamespaceIdentifierNode(INamespaceConstants.public_)); movieClipDataGetterNode.setType(null, new IdentifierNode("ByteArray")); ScopedBlockNode movieClipDataContents = movieClipDataGetterNode.getScopedNode();
public IDefinitionNode[] getDefinitions() { IDefinitionNode[] retVal = new IDefinitionNode[4]; VariableNode thisNode = new VariableNode(new IdentifierNode(IASKeywordConstants.THIS)); thisNode.setType(null, new IdentifierNode(IASLanguageConstants.Vector)); retVal[0] = thisNode; //and super VariableNode superNode = new VariableNode(new IdentifierNode(IASKeywordConstants.SUPER)); superNode.setType(null, new IdentifierNode(IASLanguageConstants.Object)); retVal[1] = superNode; //add the fixed getter/setter pair GetterNode fixGetter = new GetterNode(null, null, new IdentifierNode("fixed")); NamespaceIdentifierNode pub = new NamespaceIdentifierNode(INamespaceConstants.public_); pub.span(-1, -1, -1, -1); fixGetter.setNamespace(pub); fixGetter.setType(null, new IdentifierNode(IASLanguageConstants.Boolean)); retVal[2] = fixGetter; SetterNode fixSetter = new SetterNode(null, null, new IdentifierNode("fixed")); pub = new NamespaceIdentifierNode(INamespaceConstants.public_); pub.span(-1, -1, -1, -1); fixSetter.setNamespace(pub); fixSetter.setType(null, new IdentifierNode(IASLanguageConstants.void_)); ParameterNode value = new ParameterNode(new IdentifierNode("value")); value.setType(null, new IdentifierNode(IASLanguageConstants.Boolean)); fixSetter.getParametersContainerNode().addChild(value); retVal[3] = fixSetter; return retVal; }
n = new GetterNode((ASToken)functionT, (ASToken)getT, name); else if (setT != null) n = new SetterNode((ASToken)functionT, (ASToken)setT, name);
@Override public String getVariableType() { return getReturnType(); }
@Override public IExpressionNode getVariableTypeNode() { return getTypeNode(); }