Skip navigation links
oracle.javatools.db.ddl
Class DefaultTokenGenerator
java.lang.Object
oracle.javatools.db.ddl.TokenGenerator
oracle.javatools.db.ddl.DefaultTokenGenerator
-
public class DefaultTokenGenerator
- extends TokenGenerator
A default token generator is constructed using a piece of "token code" and that is processed by the parent processor to generate the appropriate ddl.
- Since:
- 11
Method Summary |
java.lang.Object |
evaluateToken(TokenContext context)
Evaluates the token as an Object - used by [{token} PRINT THIS] type syntax where the returned result will be used to evaulate an if or for construct. |
void |
generateToken(TokenContext context)
Generates the token in to the context - i.e. |
java.util.Collection<java.lang.String> |
getPropertiesAltered(java.lang.String type, DBObjectProvider pro)
Returns the property names that are supported for alter by this TokenGenerator. |
java.util.Collection<java.lang.String> |
getPropertiesProcessed(java.lang.String type, DBObjectProvider pro)
Returns the property names that are processed by this TokenGenerator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultTokenGenerator
public DefaultTokenGenerator(java.lang.String code)
evaluateToken
public java.lang.Object evaluateToken(TokenContext context)
- Description copied from class:
TokenGenerator
- Evaluates the token as an Object - used by [{token} PRINT THIS] type syntax where the returned result will be used to evaulate an if or for construct.
-
- Specified by:
evaluateToken
in class TokenGenerator
generateToken
public void generateToken(TokenContext context)
- Description copied from class:
TokenGenerator
- Generates the token in to the context - i.e. evaluates the token and appends the result to the context buffer.
-
- Specified by:
generateToken
in class TokenGenerator
getPropertiesProcessed
public java.util.Collection<java.lang.String> getPropertiesProcessed(java.lang.String type,
DBObjectProvider pro)
- Description copied from class:
TokenGenerator
- Returns the property names that are processed by this TokenGenerator. By default an empty list is returned. DO NOT return null.
-
- Overrides:
getPropertiesProcessed
in class TokenGenerator
getPropertiesAltered
public java.util.Collection<java.lang.String> getPropertiesAltered(java.lang.String type,
DBObjectProvider pro)
- Description copied from class:
TokenGenerator
- Returns the property names that are supported for alter by this TokenGenerator. By default an empty list is returned. DO NOT return null.
-
- Overrides:
getPropertiesAltered
in class TokenGenerator
Skip navigation links
Copyright © 1997, 2015, Oracle. All rights reserved.