org.ow2.mind.adl.jtb.syntaxtree.AttributeDefinition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adl-parser Show documentation
Show all versions of adl-parser Show documentation
Contains the parser of the ADL language of the Mind programming model.
//
// Generated by JTB 1.3.2
//
package org.ow2.mind.adl.jtb.syntaxtree;
/**
* Grammar production:
*
* f0 -> Annotations()
* f1 -> <ATTRIBUTE>
* f2 -> [ AttributeType() ]
* f3 -> <IDENTIFIER>
* f4 -> [ <ASSIGN> AttributeValue() ]
* f5 -> [ <SEMICOLON> ]
*
*/
public class AttributeDefinition implements Node {
public Annotations f0;
public NodeToken f1;
public NodeOptional f2;
public NodeToken f3;
public NodeOptional f4;
public NodeOptional f5;
public AttributeDefinition(Annotations n0, NodeToken n1, NodeOptional n2, NodeToken n3, NodeOptional n4, NodeOptional n5) {
f0 = n0;
f1 = n1;
f2 = n2;
f3 = n3;
f4 = n4;
f5 = n5;
}
public AttributeDefinition(Annotations n0, NodeOptional n1, NodeToken n2, NodeOptional n3, NodeOptional n4) {
f0 = n0;
f1 = new NodeToken("attribute");
f2 = n1;
f3 = n2;
f4 = n3;
f5 = n4;
}
public void accept(org.ow2.mind.adl.jtb.visitor.Visitor v) {
v.visit(this);
}
public R accept(org.ow2.mind.adl.jtb.visitor.GJVisitor v, A argu) {
return v.visit(this,argu);
}
public R accept(org.ow2.mind.adl.jtb.visitor.GJNoArguVisitor v) {
return v.visit(this);
}
public void accept(org.ow2.mind.adl.jtb.visitor.GJVoidVisitor v, A argu) {
v.visit(this,argu);
}
}