Class ASTMCPrimitiveType
- java.lang.Object
-
- de.monticore.ast.ASTCNode
-
- de.monticore.types.mcbasictypes._ast.ASTMCPrimitiveTypeTOP
-
- de.monticore.types.mcbasictypes._ast.ASTMCPrimitiveType
-
- All Implemented Interfaces:
de.monticore.ast.ASTNode,ASTMCBasicTypesNode,ASTMCType,ASTMCTypeTOP,java.lang.Cloneable
public class ASTMCPrimitiveType extends ASTMCPrimitiveTypeTOP
-
-
Field Summary
Fields Modifier and Type Field Description protected de.monticore.symboltable.ISymboldefiningSymbol-
Fields inherited from class de.monticore.types.mcbasictypes._ast.ASTMCPrimitiveTypeTOP
enclosingScope, primitive
-
-
Constructor Summary
Constructors Constructor Description ASTMCPrimitiveType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<de.monticore.symboltable.ISymbol>getDefiningSymbol()booleanisBoolean()booleanisByte()booleanisChar()booleanisDouble()booleanisFloat()booleanisInt()booleanisLong()booleanisShort()voidsetDefiningSymbol(de.monticore.symboltable.ISymbol symbol)java.lang.StringtoString()toString delivers a short name like "int" for the primitive Types-
Methods inherited from class de.monticore.types.mcbasictypes._ast.ASTMCPrimitiveTypeTOP
_construct, accept, accept, accept, deepClone, deepClone, deepEquals, deepEquals, deepEqualsWithComments, deepEqualsWithComments, equalAttributes, equalsWithComments, evaluate, evaluate, getEnclosingScope, getPrimitive, setEnclosingScope, setEnclosingScope, setPrimitive
-
Methods inherited from class de.monticore.ast.ASTCNode
add_PostComment, add_PostComment, add_PreComment, add_PreComment, addAll_PostComments, addAll_PostComments, addAll_PreComments, addAll_PreComments, clear_PostComments, clear_PreComments, contains_PostComment, contains_PreComment, containsAll_PostComments, containsAll_PreComments, equals_PostComments, equals_PreComments, forEach_PostComments, forEach_PreComments, get_PostComment, get_PostCommentList, get_PreComment, get_PreCommentList, get_SourcePositionEnd, get_SourcePositionStart, hashCode_PostComments, hashCode_PreComments, indexOf_PostComment, indexOf_PreComment, isEmpty_PostComments, isEmpty_PreComments, isPresent_SourcePositionEnd, isPresent_SourcePositionStart, iterator_PostComments, iterator_PreComments, lastIndexOf_PostComment, lastIndexOf_PreComment, listIterator_PostComments, listIterator_PostComments, listIterator_PreComments, listIterator_PreComments, parallelStream_PostComments, parallelStream_PreComments, remove_PostComment, remove_PostComment, remove_PreComment, remove_PreComment, removeAll_PostComments, removeAll_PreComments, removeIf_PostComment, removeIf_PreComment, replaceAll_PostComments, replaceAll_PreComments, retainAll_PostComments, retainAll_PreComments, set_PostComment, set_PostCommentList, set_PreComment, set_PreCommentList, set_SourcePositionEnd, set_SourcePositionEndAbsent, set_SourcePositionStart, set_SourcePositionStartAbsent, size_PostComments, size_PreComments, sort_PostComments, sort_PreComments, spliterator_PostComments, spliterator_PreComments, stream_PostComments, stream_PreComments, subList_PostComments, subList_PreComments, toArray_PostComments, toArray_PostComments, toArray_PreComments, toArray_PreComments
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.monticore.ast.ASTNode
add_PostComment, add_PostComment, add_PreComment, add_PreComment, addAll_PostComments, addAll_PostComments, addAll_PreComments, addAll_PreComments, clear_PostComments, clear_PreComments, contains_PostComment, contains_PreComment, containsAll_PostComments, containsAll_PreComments, equals_PostComments, equals_PreComments, forEach_PostComments, forEach_PreComments, get_PostComment, get_PostCommentList, get_PreComment, get_PreCommentList, get_SourcePositionEnd, get_SourcePositionStart, hashCode_PostComments, hashCode_PreComments, indexOf_PostComment, indexOf_PreComment, isEmpty_PostComments, isEmpty_PreComments, isPresent_SourcePositionEnd, isPresent_SourcePositionStart, iterator_PostComments, iterator_PreComments, lastIndexOf_PostComment, lastIndexOf_PreComment, listIterator_PostComments, listIterator_PostComments, listIterator_PreComments, listIterator_PreComments, parallelStream_PostComments, parallelStream_PreComments, remove_PostComment, remove_PostComment, remove_PreComment, remove_PreComment, removeAll_PostComments, removeAll_PreComments, removeIf_PostComment, removeIf_PreComment, replaceAll_PostComments, replaceAll_PreComments, retainAll_PostComments, retainAll_PreComments, set_PostComment, set_PostCommentList, set_PreComment, set_PreCommentList, set_SourcePositionEnd, set_SourcePositionEndAbsent, set_SourcePositionStart, set_SourcePositionStartAbsent, size_PostComments, size_PreComments, sort_PostComments, sort_PreComments, spliterator_PostComments, spliterator_PreComments, stream_PostComments, stream_PreComments, subList_PostComments, subList_PreComments, toArray_PostComments, toArray_PostComments, toArray_PreComments, toArray_PreComments
-
-
-
-
Method Detail
-
getDefiningSymbol
public java.util.Optional<de.monticore.symboltable.ISymbol> getDefiningSymbol()
-
setDefiningSymbol
public void setDefiningSymbol(de.monticore.symboltable.ISymbol symbol)
-
isBoolean
public boolean isBoolean()
-
isByte
public boolean isByte()
-
isChar
public boolean isChar()
-
isShort
public boolean isShort()
-
isInt
public boolean isInt()
-
isFloat
public boolean isFloat()
-
isLong
public boolean isLong()
-
isDouble
public boolean isDouble()
-
toString
public java.lang.String toString()
toString delivers a short name like "int" for the primitive Types- Overrides:
toStringin classjava.lang.Object- Returns:
-
-