org.quasiliteral.astro
Interface AstroSchema

All Known Implementing Classes:
BaseSchema

public interface AstroSchema

Untamed:


Method Summary
 AstroTag getLiteralCharTag()
          Enabled: Gets the tag for representing character literals.
 AstroTag getLiteralFloat64Tag()
          Enabled: Gets the tag for representing floating point literals.
 AstroTag getLiteralIntegerTag()
          Enabled: Gets the tag for representing integer literals.
 AstroTag getLiteralStringTag()
          Enabled: Gets the tag for representing String literals.
 AstroTag getOptTagForCode(short tagCode)
          Enabled: Returns the tag represented by this tag code in the grammar described by this schema, or null.
 AstroTag getOptTagForName(String tagName)
          Enabled: Returns the tag represented by this tag name in the grammar described by this schema, or null if this schema doesn't define this tagName.
 AstroTag getOptTypeTag(Class clazz)
          Enabled: Gets the tag for literally representing instances of clazz, or null if clazz is the wrong kind.
 String getSchemaName()
          Enabled: The name of the language this is a Schema for, for diagnostic purposes only.
 AstroTag getTagForCode(short tagCode)
          Enabled: Returns the tag represented by this tag code in the grammar described by this schema, or throw an exception.
 AstroTag getTypeTag(Class clazz)
          Enabled: Gets the tag for literally representing instances of clazz, or throws if clazz is the wrong kind.
 AstroTag obtainTagForName(String tagName)
          Enabled: Returns the tag represented by this tag name in the grammar described by this schema.
 

Method Detail

getSchemaName

public String getSchemaName()
Enabled: The name of the language this is a Schema for, for diagnostic purposes only.


getOptTagForCode

public AstroTag getOptTagForCode(short tagCode)
Enabled: Returns the tag represented by this tag code in the grammar described by this schema, or null.


getTagForCode

public AstroTag getTagForCode(short tagCode)
Enabled: Returns the tag represented by this tag code in the grammar described by this schema, or throw an exception.


getOptTagForName

public AstroTag getOptTagForName(String tagName)
Enabled: Returns the tag represented by this tag name in the grammar described by this schema, or null if this schema doesn't define this tagName.


obtainTagForName

public AstroTag obtainTagForName(String tagName)
Enabled: Returns the tag represented by this tag name in the grammar described by this schema.

If there is no tag defined in this schema for this name, this still returns a (typically newly allocated) tag with this tagName and this schema, but with a tagCode of -1. Even in this case, the tagName of the resulting tag will be interned.


getLiteralCharTag

public AstroTag getLiteralCharTag()
Enabled: Gets the tag for representing character literals.

The literal data is canonically represented by a Character object.


getLiteralIntegerTag

public AstroTag getLiteralIntegerTag()
Enabled: Gets the tag for representing integer literals.

The literal data is canonically represented by a BigInteger object.


getLiteralFloat64Tag

public AstroTag getLiteralFloat64Tag()
Enabled: Gets the tag for representing floating point literals.

The literal data is canonically represented by a Double object.


getLiteralStringTag

public AstroTag getLiteralStringTag()
Enabled: Gets the tag for representing String literals.

The literal data is canonically represented by a Twine object.


getOptTypeTag

public AstroTag getOptTypeTag(Class clazz)
Enabled: Gets the tag for literally representing instances of clazz, or null if clazz is the wrong kind.


getTypeTag

public AstroTag getTypeTag(Class clazz)
Enabled: Gets the tag for literally representing instances of clazz, or throws if clazz is the wrong kind.



comments?