polyglot.ext.ibex.types
Class MutableParserType_c

java.lang.Object
  extended bypolyglot.ext.jl.types.TypeObject_c
      extended bypolyglot.ext.jl.types.Type_c
          extended bypolyglot.ext.jl.types.ReferenceType_c
              extended bypolyglot.ext.jl.types.ClassType_c
                  extended bypolyglot.ext.jl.types.ParsedClassType_c
                      extended bypolyglot.ext.ibex.types.MutableParserType_c
All Implemented Interfaces:
ClassType, java.lang.Cloneable, Copy, Importable, MemberInstance, MutableParserType, Named, ParsedClassType, ParserType, Qualifier, ReferenceType, java.io.Serializable, Type, TypeObject

public class MutableParserType_c
extends ParsedClassType_c
implements MutableParserType

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class polyglot.types.ClassType
ClassType.Kind
 
Field Summary
 
Fields inherited from class polyglot.ext.jl.types.ParsedClassType_c
constructors, fields, flags, fromSource, init, inStaticContext, interfaces, kind, memberClasses, methods, name, outer, package_, superType
 
Fields inherited from class polyglot.ext.jl.types.TypeObject_c
position, ts
 
Fields inherited from interface polyglot.types.ClassType
ANONYMOUS, LOCAL, MEMBER, TOP_LEVEL
 
Constructor Summary
protected MutableParserType_c()
           
  MutableParserType_c(TypeSystem ts, LazyClassInitializer init, Source fromSource)
           
 
Method Summary
 void addNonterminal(Nonterminal nonterminal)
           
 void addTerminal(Terminal terminal)
           
 java.util.List allNonterminals()
           
 java.util.List allTerminals()
           
 boolean isParser()
           
 Nonterminal nonterminalNamed(java.lang.String name)
           
 java.util.List nonterminals()
           
 void setStartSymbol(Nonterminal start)
           
 Nonterminal startSymbol()
           
 Terminal terminalNamed(java.lang.String name)
           
 java.util.List terminals()
           
 
Methods inherited from class polyglot.ext.jl.types.ParsedClassType_c
addConstructor, addField, addInterface, addMemberClass, addMethod, constructors, fields, flags, flags, freeInit, fromSource, initialized, inStaticContext, inStaticContext, interfaces, kind, kind, memberClasses, methods, name, name, outer, outer, package_, package_, position, superType, superType
 
Methods inherited from class polyglot.ext.jl.types.ClassType_c
container, descendsFromImpl, fieldNamed, fullName, hasEnclosingInstance, hasEnclosingInstanceImpl, isAnonymous, isCanonical, isCastValidImpl, isClass, isEnclosed, isEnclosedImpl, isImplicitCastValidImpl, isInner, isInnerClass, isLocal, isMember, isNested, isThrowable, isTopLevel, isUncheckedException, memberClassNamed, toClass, toString, translate
 
Methods inherited from class polyglot.ext.jl.types.ReferenceType_c
hasMethod, hasMethodImpl, isReference, methods, methodsNamed, toReference
 
Methods inherited from class polyglot.ext.jl.types.Type_c
arrayOf, arrayOf, descendsFrom, isArray, isBoolean, isByte, isCastValid, isChar, isComparable, isDouble, isFloat, isImplicitCastValid, isInt, isIntOrLess, isLong, isLongOrLess, isNull, isNumeric, isPackage, isPrimitive, isShort, isSubtype, isSubtypeImpl, isType, isVoid, numericConversionValid, numericConversionValid, numericConversionValidImpl, numericConversionValidImpl, toArray, toNull, toPackage, toPrimitive, toType
 
Methods inherited from class polyglot.ext.jl.types.TypeObject_c
copy, equals, equalsImpl, hashCode, position, typeSystem
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface polyglot.types.ClassType
constructors, fieldNamed, hasEnclosingInstance, hasEnclosingInstanceImpl, inStaticContext, isAnonymous, isEnclosed, isEnclosedImpl, isInner, isInnerClass, isLocal, isMember, isNested, isTopLevel, kind, memberClasses, memberClassNamed, outer
 
Methods inherited from interface polyglot.types.Importable
package_
 
Methods inherited from interface polyglot.types.Named
fullName, name
 
Methods inherited from interface polyglot.types.TypeObject
equalsImpl, isCanonical, position, typeSystem
 
Methods inherited from interface polyglot.util.Copy
copy
 
Methods inherited from interface polyglot.types.ReferenceType
fields, hasMethod, hasMethodImpl, interfaces, methods, methods, methodsNamed, superType
 
Methods inherited from interface polyglot.types.Type
arrayOf, arrayOf, descendsFrom, descendsFromImpl, isArray, isBoolean, isByte, isCastValid, isCastValidImpl, isChar, isClass, isComparable, isDouble, isFloat, isImplicitCastValid, isImplicitCastValidImpl, isInt, isIntOrLess, isLong, isLongOrLess, isNull, isNumeric, isPrimitive, isReference, isShort, isSubtype, isSubtypeImpl, isThrowable, isUncheckedException, isVoid, numericConversionValid, numericConversionValid, numericConversionValidImpl, numericConversionValidImpl, toArray, toClass, toNull, toPrimitive, toReference, toString, translate
 
Methods inherited from interface polyglot.types.Qualifier
isPackage, isType, toPackage, toType
 
Methods inherited from interface polyglot.types.MemberInstance
container, flags
 
Methods inherited from interface polyglot.types.ParsedClassType
addConstructor, addField, addInterface, addMemberClass, addMethod, flags, fromSource, inStaticContext, kind, name, outer, package_, position, superType
 

Constructor Detail

MutableParserType_c

protected MutableParserType_c()

MutableParserType_c

public MutableParserType_c(TypeSystem ts,
                           LazyClassInitializer init,
                           Source fromSource)
Method Detail

addNonterminal

public void addNonterminal(Nonterminal nonterminal)
Specified by:
addNonterminal in interface MutableParserType

addTerminal

public void addTerminal(Terminal terminal)
Specified by:
addTerminal in interface MutableParserType

setStartSymbol

public void setStartSymbol(Nonterminal start)
Specified by:
setStartSymbol in interface MutableParserType

nonterminals

public java.util.List nonterminals()
Specified by:
nonterminals in interface ParserType

terminals

public java.util.List terminals()
Specified by:
terminals in interface ParserType

startSymbol

public Nonterminal startSymbol()
Specified by:
startSymbol in interface ParserType

terminalNamed

public Terminal terminalNamed(java.lang.String name)
Specified by:
terminalNamed in interface ParserType

nonterminalNamed

public Nonterminal nonterminalNamed(java.lang.String name)
Specified by:
nonterminalNamed in interface ParserType

isParser

public boolean isParser()
Specified by:
isParser in interface ParserType

allTerminals

public java.util.List allTerminals()
Specified by:
allTerminals in interface ParserType

allNonterminals

public java.util.List allNonterminals()
Specified by:
allNonterminals in interface ParserType