Package org.reploop.parser.thrift.tree
Class Field
- java.lang.Object
-
- org.reploop.parser.thrift.Node
-
- org.reploop.parser.thrift.tree.Field
-
public class Field extends Node
What's this about?- Since:
- 2015-07-03 00
- Author:
- George Cao(georgecao@outlook.com)
-
-
Constructor Summary
Constructors Constructor Description Field(List<String> comments, FieldType fieldType, Integer filedId, String name, boolean required)Field(List<String> comments, FieldType fieldType, Integer filedId, String name, boolean required, Optional<Value> value)Field(List<String> comments, FieldType fieldType, Integer filedId, QualifiedName name, boolean required)Field(List<String> comments, FieldType fieldType, Integer filedId, QualifiedName name, boolean required, Optional<Value> value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,C>
Raccept(AstVisitor<R,C> visitor, C context)booleanequals(Object obj)List<String>getComments()FieldTypegetFieldType()IntegergetFiledId()QualifiedNamegetName()Optional<Value>getValue()inthashCode()booleanisRequired()StringtoString()
-
-
-
Constructor Detail
-
Field
public Field(List<String> comments, FieldType fieldType, Integer filedId, String name, boolean required)
-
Field
public Field(List<String> comments, FieldType fieldType, Integer filedId, String name, boolean required, Optional<Value> value)
-
Field
public Field(List<String> comments, FieldType fieldType, Integer filedId, QualifiedName name, boolean required)
-
-
Method Detail
-
accept
public <R,C> R accept(AstVisitor<R,C> visitor, C context)
-
getFieldType
public FieldType getFieldType()
-
getFiledId
public Integer getFiledId()
-
getName
public QualifiedName getName()
-
isRequired
public boolean isRequired()
-
-