MCPcopy Create free account
hub / github.com/antlr/codebuff / getObjectProperty

Method getObjectProperty

output/java8/1.4.14/Interpreter.java:1162–1176  ·  view source on GitHub ↗
(STWriter out, InstanceScope scope, Object o, Object property)

Source from the content-addressed store, hash-verified

1160 }
1161
1162 protected Object getObjectProperty(STWriter out, InstanceScope scope, Object o, Object property) {
1163 if ( o==null ) {
1164 errMgr.runTimeError(this, scope, ErrorType.NO_SUCH_PROPERTY, "null."+property);
1165 return null;
1166 }
1167 try {
1168 final ST self = scope.st;
1169 ModelAdaptor adap = self.groupThatCreatedThisInstance.getModelAdaptor(o.getClass());
1170 return adap.getProperty(this, self, o, property, toString(out, scope, property));
1171 }
1172 catch (STNoSuchPropertyException e) {
1173 errMgr.runTimeError(this, scope, ErrorType.NO_SUCH_PROPERTY, e, o.getClass().getName()+"."+property);
1174 }
1175 return null;
1176 }
1177
1178 /**
1179 * Find an attribute via dynamic scoping up enclosing scope chain. Only look

Callers 1

_execMethod · 0.95

Calls 5

getPropertyMethod · 0.95
toStringMethod · 0.95
runTimeErrorMethod · 0.65
getModelAdaptorMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected